<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Video extends Model
{
    use HasFactory;
    use SoftDeletes;
    protected $fillable=[
        'name',
        'master_id',
        'type',
        'image',
        'shipin',
        'show',
        'start_at',
        'end_at'

    ];
    public function comment(){
        return $this->belongsToMany(Master::class,'comments', 'video_id','master_id');
    }
}
